/**
 * 
 */
var A = function(selector) {
    return A.fn.init(selector);
}

A.fn = A.prototype = {
    init: function(selector) {
        this[0] = document.getElementById(selector);
        this.length = 1;
        return this;
    },
    length: 2,
    size: function() {
        return this.length;
    }
};

var demo = A('demo');
console.log(demo);
console.log(A('demo').size());

var test = A('test');
console.log(demo);
